package com.tt.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 部门、表观所有表的total数据
 * </p>
 *
 * @author TP
 * @since 2022-10-26 10:59:16
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("department_apparent_total")
public class DepartmentApparentTotal implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("total")
    private String total;

    /**
     * 0表示部门，1表示表观
     */
    @TableField("`type`")
    private Integer type;

    /**
     * 部门=0 表示部门表的每个部门排放量相加的total; 表观的部门id为NULL
     */
    @TableField("department_id")
    private Integer departmentId;

    /**
     * 省份=0 表示全国的表观或部门的total
     */
    @TableField("province_id")
    private Integer provinceId;

    @TableField("`year`")
    private String year;


}
